package org.xzp.node;

public class Util {
	public static void printList(Node head){
		while(head!=null){
			if(head.next!=null){
				System.out.print(head.value+"->");
			}else{
				System.out.print(head.value);
			}
			head=head.next;
		}
	}
}
